<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ResearchTitleForm
 *
 * @author mujahid
 */
class ResearchTitleForm extends BaseResearchForm {

    public function configure() {
//        $this->useFields(array('entityid', 'title', 'citation', 'researchstatustyperefid',
//            'approvalstatustyperefid', 'approvalauthorityid', 'createbyuserid', 'modifiedbyuserid',
//            'created_at', 'updated_at'));

        $this->useFields(array('title', 'citation'));

//        $this->widgetSchema['entityid'] = new sfWidgetFormInputHidden();
//        $this->widgetSchema['researchstatustyperefid'] = new sfWidgetFormInputHidden();
//        $this->widgetSchema['created_at'] = new sfWidgetFormInputHidden();
//        $this->widgetSchema['updated_at'] = new sfWidgetFormInputHidden();
//
//        $this->validatorSchema['entityid'] = new sfValidatorInteger(array('required' => false));
//        $this->validatorSchema['researchstatustyperefid'] = new sfValidatorInteger(array('required' => false));
//        $this->validatorSchema['approvalstatustyperefid'] = new sfValidatorInteger(array('required' => false));
//        $this->validatorSchema['approvalauthorityid'] = new sfValidatorInteger(array('required' => false));
//        $this->validatorSchema['createbyuserid'] = new sfValidatorInteger(array('required' => false));
//        $this->validatorSchema['modifiedbyuserid'] = new sfValidatorInteger(array('required' => false));
//        $this->validatorSchema['created_at'] = new sfValidatorDateTime(array('required' => false));
//        $this->validatorSchema['updated_at'] = new sfValidatorDateTime(array('required' => false));
//
//        $this->validatorSchema['entityid']->setMessage('required', 'entity id required');
//        $this->validatorSchema['researchstatustyperefid']->setMessage('required', 'researchstatustyperefid required');
//        $this->validatorSchema['title']->setMessage('required', 'title required');
//        $this->validatorSchema['citation']->setMessage('required', 'citation required');
        
    }
}

?>
